xen/arm: vreg: Introduce vreg_emulate_cp{32,64}
authorJulien Grall <julien.grall@arm.com>
Wed, 7 Dec 2016 12:33:50 +0000 (12:33 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 7 Dec 2016 22:38:40 +0000 (14:38 -0800)
commitcc9e34d57a75c192bf4c6ebcd2e9055113093497
tree486915cdfb23fb8967874efe2901ea3eb8e78138
parent836a0e2aecb3809d4ef7d58fe5db88a029222e1f
xen/arm: vreg: Introduce vreg_emulate_cp{32,64}

Factorize the code to emulate 32-bit and 64-bit access to a co-processor
in specific helpers.

The new helpers will be used in different components to simplify the
emulation.

Finally, the prototypes for the callbacks to emulate 32-bit and 64-bit
co-processor access are the same as the sysreg one. Rather than
introducing new ones, repurpose the existent prototypes.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vtimer.c
xen/include/asm-arm/vreg.h